﻿<phone:PhoneApplicationPage 
    x:Class="MushroomPicker.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<Style x:Key="ButtonStyle1" TargetType="Button">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
			<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
			<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
			<Setter Property="Padding" Value="10,3,10,5"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<Grid.Background>
								<ImageBrush Stretch="Fill" ImageSource="Res/button.png"/>
							</Grid.Background>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
												<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image" Source="Res/button_b.png" Stretch="Fill" Visibility="Collapsed"/>
							<Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0">
								<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Margin="0,0,0,23"/>
							</Border>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="Fill" ImageSource="Res/startbackground.jpg"/>
    	</Grid.Background>
    	<Button Content="Start Game" Height="134" Margin="37,0,29,390" VerticalAlignment="Bottom" BorderThickness="0" Style="{StaticResource ButtonStyle1}" FontSize="48" Foreground="Black" BorderBrush="{x:Null}" Background="{x:Null}" Click="StartGame_Click" FontFamily="Lucida Sans Unicode"/>
        <Button Content="OpenXLive" Height="134" Margin="37,0,29,240" VerticalAlignment="Bottom" BorderThickness="0" Style="{StaticResource ButtonStyle1}" FontSize="48" Foreground="Black" BorderBrush="{x:Null}" Background="{x:Null}" Click="GameCenter_Click" FontFamily="Lucida Sans Unicode"/>
    	<TextBlock Margin="14,30,13,0" TextWrapping="Wrap" FontSize="85.333" TextAlignment="Center" FontFamily="Comic Sans MS" Foreground="Black" Height="286" VerticalAlignment="Top"><Span><Run Text="Mushroom"/></Span><LineBreak/><Run Text="Picker"/></TextBlock>
    	<TextBlock Margin="12,26,15,0" TextWrapping="Wrap" FontSize="85.333" TextAlignment="Center" FontFamily="Comic Sans MS" Foreground="White" Height="286" VerticalAlignment="Top"><Span><Run Text="Mushroom"/></Span><LineBreak/><Run Text="Picker"/></TextBlock>
    	<Button Content="How to Play" Height="134" Margin="37,0,29,95" VerticalAlignment="Bottom" BorderThickness="0" Style="{StaticResource ButtonStyle1}" FontSize="48" Foreground="Black" BorderBrush="{x:Null}" Background="{x:Null}" Click="Help_Click"/>
    	<CheckBox x:Name="check_Music" Content="Music" Margin="37,0,0,8" VerticalAlignment="Bottom" IsChecked="True" FontSize="32" Foreground="#FFC5D081" HorizontalAlignment="Left" Width="164"/>
    	<CheckBox x:Name="check_Sound" Content="EffectSound" Margin="234,0,0,8" VerticalAlignment="Bottom" IsChecked="True" FontSize="32" Foreground="#FFC5D081" Visibility="Collapsed"/>
        
    </Grid>

</phone:PhoneApplicationPage>